const { promisify } = require('util')


//repo 克隆地址  //desc 克隆到什么地方
module.exports = async function clone(repo, desc) {
  const download = promisify(require('download-git-repo'))
  const ora = require('ora')//进度条
  const process = ora(`下载...${repo}`) //定义一个进度条
  process.start()//启动进度条
  await download(repo, desc)
  process.succeed()
}